package com.skyline.energy.dataaccess.jdbc;

import java.util.List;

import com.skyline.energy.utils.Page;

public interface JdbcDataAccessor {
	<T> List<T> query(String sql, RowMapper<T> rowMapper, int fetchSize, Object... args);

	int update(String sql, KeyHolder generatedKeyHolder, Object... args);

	int[] batchUpdate(String sql, List<Object[]> argsList, KeyHolder generatedKeyHolder);

	int queryCount(String sql, Object... args);

	<T> List<T> queryPage(String sql, Page page, RowMapper<T> rowMapper, int fetchSize, Object... args);

	KeyHolder getKeyHolder();
}
